//Name:
//Purpose:
//Author: wjy
//Date: 2022-01-25 11:57:50
//From:

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    int num, temp;
    printf("Enter a num: ");
    scanf("%d", &num);
    while (num != 0)
    {
        temp = num % 10;
        num = num / 10;
        printf("%d\n", temp);
    }
    system("pause");
    return 0;
}